<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="UTF-8"/>
<title>运营平台</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="renderer" content="webkit">
<!--<meta http-equiv="X-UA-Compatible" content="IE=edge">-->
<link type="text/css" rel="stylesheet" href="<?php echo get_style_cdnurl();?>paimai/yunying/css/common.css?v=20170207" />
<link type="text/css" rel="stylesheet" href="<?php echo get_style_cdnurl();?>paimai/yunying/css/table.css?v=20170117" />
<link type="text/css" rel="stylesheet" href="<?php echo get_style_cdnurl();?>paimai/yunying/css/jquery-ui.css" />
<script src="<?php echo get_style_cdnurl();?>paimai/yunying/js/jquery-1.11.1.js" type="text/javascript"></script>
<script src="<?php echo get_style_cdnurl();?>paimai/yunying/js/jquery-ui.min.js" type="text/javascript"></script>
 <script src="<?php echo get_style_cdnurl();?>paimai/yunying/js/yunIndex.js" type="text/javascript"></script>
<script src="<?php echo get_style_cdnurl();?>paimai/yunying/js/jquery-ym-datePlugin-0.1.js" type="text/javascript"></script>
<script src="<?php echo get_style_cdnurl();?>paimai/yunying/js/global.js" type="text/javascript"></script>
<script src="<?php echo get_style_cdnurl();?>paimai/cheshan/js/common.js" type="text/javascript"></script>
<script type="text/javascript" src="<?php echo get_style_cdnurl();?>paimai/yunying/js/jquery.placeholder.min.js"></script>
<script type="text/javascript">
 $(function(){
     $("input").placeholder();
     if (navigator.userAgent.indexOf("Safari") > -1) {
       $("input").css("lineHeight","normal !important");
     };
});
</script>

<body>
<div class="header">
<div class="headerCo">
<span>你好,<?php echo ($user_info["real_name"]); ?><a href="<?php echo (WEB_URL); ?>Emp/logout">退出</a></span>
<h1><img src="<?php echo get_style_cdnurl();?>paimai/yunying/images/yun_logo.jpg"></h1>
</div>
</div>
<div class="mian">
    <div class="mianL">
    <dl>
        <dd>
            <a id="menu_sy" href="/Index/index" class="shouye">首页</a>
        </dd>
        <?php foreach ($tree_menu as $key => $value): ?>
          <dd>
            <span id="menu_<?php echo ($value['first_char']); ?>" ><img src="<?php echo get_style_cdnurl();?>paimai/yunying/images/yun_jia.jpg"><?php echo ($value['name']); ?></span>
            <ul style="display: none;">
                <?php if (!empty($value['children'])): ?>
                    <?php foreach ($value['children'] as $k => $v): ?>
                        <li><a id='menu_<?php echo ($v["first_char"]); ?>' href="<?php echo ($v['url']); ?>"><?php echo ($v['name']); ?></a></li>
                    <?php endforeach ?>
                <?php endif ?>
            </ul>
        <?php endforeach ?>
    </dl>
</div>

<?php $menu = 'spgl.ccgl'; ?>
<?php $menu=json_encode(explode('.', $menu)); ?>
<script>
    $(function () {
        var cur_menu = '<?php echo ($menu); ?>', cur_menu = eval('[' + cur_menu + ']'), cur_menu = cur_menu[0];
        if (cur_menu == "sy") {
            $("#menu_sy").removeClass('shouye').addClass('current');
        }
        $('#menu_' + cur_menu[0]).click();
        $('#menu_' + cur_menu[0]).find("img").attr("src", "http://img1.isou365.cn/paimai/yunying/images/yun_jie.jpg");
        $(".mianL").css("height", $(document).height() - 95);
        $('#menu_' + cur_menu[1]).addClass('current');
    });
</script>
    <div class="mianR">
        <h3 class="yonghu" style="width:1180px">拍品排序</h3>
<!--        <div class="yuyue">
            <ul>
                <li onclick="get_list(0);" class="yuCurrent">11日10点场</li>
                <li onclick="get_list(1);">11日14点场</li>                    
                <li onclick="get_list(2);">12日10点场</li>                    
            </ul>
        </div>-->
        <div class="paixu" style="width:1200px;">
            <span>场次名称：<?php echo ($scene["name"]); ?> &nbsp;&nbsp;&nbsp;&nbsp;场次开始时间：<?php echo ($scene["starttime"]); ?>&nbsp;&nbsp;&nbsp;&nbsp;所属城市：<?php echo ($scene["city"]); ?></span>
        </div>
        <div id="listBox" ></div>
        <div class="yongBtn1">
        <input class="queding" type="submit" value="返回" onclick="history.back();">
        </div>
        <div id="scene_id" style="display:none"><?php echo ($scene_id); ?></div>
    </div>
    <!--修改定时单开拍时间开始-->
    <div class="tanShang2">
        <h3>修改开拍时间</h3>
        <ul>
            <li class="clearfix"><span>开拍时间</span><input type="text" name="bidding_start_time" class="shijian" value="" id="demoText10"/></li>
            <li class="clearfix">
                <input type="button" value="确定" class="queding" id="scene_submit"/>
                <input type="button" value="取消" class="quxiao"/>
                <input type="hidden" name="order_id" value=""/>
        </ul>
    </div>
    <!--修改定时单开拍时间结束-->

    <div class="clear"></div>
</div>
<script type="text/javascript">
    get_list(0);
    function get_list(status) {
        var scene_id = $("#scene_id").html();
        $.get("<?php echo U('AuOrder/scene_auction_list');?>", {"scene_id":scene_id,"status": status}, function (data) {
            $("#listBox").html(data);
        }, "html");
    }
    function get_page(p) {
        var scene_id = $("#scene_id").html();
        var status = 0;
        $.get("<?php echo U('AuOrder/scene_auction_list');?>", {"p": p,"scene_id":scene_id,"status": status}, function (data) {
            $("#listBox").html(data);
        }, "html");
    }

    function get_rank_up(oid) {
        if ($("#" + oid).prev() && $("#" + oid).prev().attr('is_timing_order')!='1') {
            var order_id1 = oid;
            var order_id2 = $("#" + oid).prev().attr('id');
            if (order_id2 !== undefined) {
                $("#" + oid).prev().before($("#" + oid));
                $.post("<?php echo U('AuOrder/ranking');?>", {'order_id1': order_id1, 'order_id2': order_id2, 'direction': "up"}, function (data) {
                    if (data) {
                        $("#" + data.order_id1 + " .number").html(data.order_rank1);
                        $("#" + data.order_id2 + " .number").html(data.order_rank2);
                        get_list(0);
                    }
                }, "json");
            } else {
                shibai_alert("无法上移");
            }
        }

    }
    function get_rank_down(oid) {
        if ($("#" + oid).next()) {
            var order_id1 = oid;
            var order_id2 = $("#" + oid).next().attr('id');
            if (order_id2 !== undefined) {
                $("#" + oid).next().after($("#" + oid));
                $.post("<?php echo U('AuOrder/ranking');?>", {'order_id1': order_id1, 'order_id2': order_id2, 'direction': "down"}, function (data) {
                    if (data) {
                        $("#" + data.order_id1 + " .number").html(data.order_rank1);
                        $("#" + data.order_id2 + " .number").html(data.order_rank2);
                        get_list(0);
                    }
                }, "json");
            } else {
                shibai_alert("无法下移");
            }
        }
    }
        //
    $(".queding").on('click', function () {
        var bidding_start_time = $('input[name=bidding_start_time]').val();
        var order_id = $('input[name=order_id]').val();
        var param = {
            'bidding_start_time': bidding_start_time,
            'order_id': order_id
        };
        $.post('/AuOrder/edit_timing_order', param, function (data) {
            if (data.code == '200') {
                btn_alert(data.msg);
                $('.tanShang2').fadeOut();
                $('.yunBei').fadeOut();
                //event.stopPropagation()
                get_list();
            } else {
                shibai_alert(data.msg)
            }
        }, 'json')
    });
    $(".quxiao").on('click', function () {
        $('.yunBei').fadeOut();
    });

</script>
<div class="yunBei"></div>
<div class="loading"></div>
</body>
</html>